package com.lyc.dao;

import com.lyc.entity.Product;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;
import java.util.List;
public interface ISolrDao {
    List<Product> queryProducts(SolrQuery solrQuery) throws IOException, SolrServerException;

    void test() throws IOException, SolrServerException;

    void deleteById(String pid);

    void addOrUpdateProduct(Product product);
}
